import { configureStore } from '@reduxjs/toolkit';
import { Provider } from 'react-redux';
import { thunk } from 'redux-thunk';
import componentInfosReducer from './features/componentInfos/componentInfosSlice';

const store = configureStore({
  reducer: {
    componentInfos: componentInfosReducer
  },
  middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(thunk)
});

export default store;